package com.bst.bsj.base.controller;

import java.io.Serializable;

import com.bst.bsj.base.controller.HttpResponse.StatusCode;

public class HttpResponseFactory {

	public static HttpResponse createOKResponse(Serializable object) {
		return new HttpResponse(StatusCode.OK.getValue(), object);
	}

	public static HttpResponse createOKResponse() {
		return new HttpResponse(StatusCode.OK);
	}

	public static HttpResponse createInterErrResponse() {
		return new HttpResponse(StatusCode.INTERERR);
	}

}
